﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Pixysoft.Framework.Remoting.Core
{
    class RemotingHelloworld : IRemotingHelloworld
    {
        public IRemotingValue HelloWorld(DateTime para1, string para2, int para3, IRemotingValue para4)
        {
            IRemotingValue value = Pixysoft.Tools.PojoHelper.GetPojo<IRemotingValue>();
            value.DateTimeValue = para1;
            value.StringValue = para2;
            value.IntValue = para3;
            value.Value = para4.Value;
            return value;
        }

        public byte[] PostBinary(byte[] binary)
        {
            return binary;
        }
    }
}

namespace Pixysoft.Framework.Remoting
{
    [Remote("Pixysoft.Framework.Remoting", "Pixysoft.Framework.Remoting.Core.RemotingHelloworld")]
    public interface IRemotingHelloworld
    {
        IRemotingValue HelloWorld(DateTime para1, string para2, int para3, IRemotingValue para4);

        byte[] PostBinary(byte[] binary);
    }

    public interface IRemotingValue
    {
        string Value { get;set;}

        DateTime DateTimeValue { get;set;}

        string StringValue { get;set;}

        int IntValue { get;set;}
    }
}